package com.right.health.app.ui.common;

import android.os.Bundle;
import android.view.View;

import com.magic.basic.activity.BaseActivity;
import com.right.health.app.R;

/*
 * 知识课堂
 * Created by hopeliao on 2019-09-24
 *
 */
public class KnowledgeActivity extends BaseActivity implements View.OnClickListener {

    @Override
    public void onCreate(Bundle bundle, String s) {
        setContentView(R.layout.knowledge);
    }

    @Override
    public void findView() {
        findViewById(R.id.rl_item3).setOnClickListener(this);
        findViewById(R.id.rl_item2).setOnClickListener(this);
        findViewById(R.id.rl_item1).setOnClickListener(this);
    }

    @Override
    public void initialize() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_item1:
                ArticleDetailActivity.makeActivity(this, "疾病知识库", "http://www.lanniuh.com:3002/web-bin/m/nosen/repository/disease/to_diseaseList_page");
                break;
            case R.id.rl_item2:
                ArticleDetailActivity.makeActivity(this, "药品知识库", "http://www.lanniuh.com:3002/web-bin/m/nosen/repository/drug/to_drugList_page");
                break;
            case R.id.rl_item3:
                ArticleDetailActivity.makeActivity(this, "急救指导", "http://www.lanniuh.com:3002/web-bin/m/nosen/repository/aid/to_aidList_page");
                break;

        }
    }
}
